<script setup lang="ts">
definePageMeta({
  layout: false,

})

// 页面标题
useHead({
  title: '聚灵云4.0 - 系统导航'
})
</script>

<template>
  <div class="navigation-container">
    <div class="navigation-header">
      <h1>聚灵云4.0 系统导航</h1>
      <p>请选择您要进入的系统</p>
    </div>
    
    <div class="navigation-cards">
      <div class="nav-card" @click="navigateTo('/master/login')">
        <div class="card-icon">
          <svg xmlns="http://www.w3.org/2000/svg" width="64" height="64" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
            <rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect>
            <line x1="3" y1="9" x2="21" y2="9"></line>
            <line x1="9" y1="21" x2="9" y2="9"></line>
          </svg>
        </div>
        <div class="card-content">
          <h2>中控台</h2>
          <p>系统管理、用户管理、权限设置等</p>
        </div>
      </div>
      
      <div class="nav-card" @click="navigateTo('/merchant/login')">
        <div class="card-icon">
          <svg xmlns="http://www.w3.org/2000/svg" width="64" height="64" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
            <path d="M6 2L3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4z"></path>
            <line x1="3" y1="6" x2="21" y2="6"></line>
            <path d="M16 10a4 4 0 0 1-8 0"></path>
          </svg>
        </div>
        <div class="card-content">
          <h2>商家端</h2>
          <p>订单管理、商品管理、店铺设置等</p>
        </div>
      </div>
    </div>
  </div>
</template>

<style scoped>
.navigation-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem;
  background-color: #f5f7fa;
}

.navigation-header {
  text-align: center;
  margin-bottom: 3rem;
}

.navigation-header h1 {
  font-size: 2.5rem;
  color: #333;
  margin-bottom: 0.5rem;
}

.navigation-header p {
  font-size: 1.2rem;
  color: #666;
}

.navigation-cards {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 300px;
  padding: 2rem;
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.3s ease;
}

.nav-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100px;
  height: 100px;
  margin-bottom: 1.5rem;
  color: #3498db;
}

.card-content {
  text-align: center;
}

.card-content h2 {
  font-size: 1.8rem;
  color: #333;
  margin-bottom: 0.5rem;
}

.card-content p {
  font-size: 1rem;
  color: #666;
}

@media (max-width: 768px) {
  .navigation-cards {
    flex-direction: column;
  }
  
  .nav-card {
    width: 100%;
    max-width: 400px;
  }
}
</style>